package xzy.com.entity.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 
* @Title: Article
* @Description: 文章管理
* @author: liyang
* @date 2020年11月25日 上午10:40:21
 */
@TableName("tb_article")
public class Article {
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;// id
	private String title;// 标题
	private String secondTitle;// 副标题
	private String author;// 作者
	private String digest;// 摘要 
	private String content;// 内容
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;//创建时间
	@TableField(fill = FieldFill.UPDATE)
	private Date updateTime;//修改时间
	private Long hittimes;// 点击量
	private Integer state;// 状态
	private Integer menuId;// 菜单id
	@TableField(exist = false)
	private String menuName;// 菜单名称
	
	@TableField(exist = false)
	private String typeName;//菜单名称
	
	
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getSecondTitle() {
		return secondTitle;
	}
	public void setSecondTitle(String secondTitle) {
		this.secondTitle = secondTitle;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getDigest() {
		return digest;
	}
	public void setDigest(String digest) {
		this.digest = digest;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Long getHittimes() {
		return hittimes;
	}
	public void setHittimes(Long hittimes) {
		this.hittimes = hittimes;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public Integer getMenuId() {
		return menuId;
	}
	public void setMenuId(Integer menuId) {
		this.menuId = menuId;
	}
	public String getMenuName() {
		return menuName;
	}
	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}
	@Override
	public String toString() {
		return "Article [id=" + id + ", title=" + title + ", secondTitle=" + secondTitle + ", author=" + author
				+ ", digest=" + digest + ", content=" + content + ", createTime=" + createTime + ", updateTime="
				+ updateTime + ", hittimes=" + hittimes + ", state=" + state + ", menuId=" + menuId + ", menuName="
				+ menuName + ", typeName=" + typeName + "]";
	}
	
	
	
	
	

}
